[1] 3
GVPT399F: Power, Politics, and Data
Introduction to R
Introduction to RStudio
A versatile programming language
Free and accessible!
R is a free and open-source programming language and software environment for statistical computing and graphics.
RStudio is an integrated development environment (IDE) for the R programming language.
Source: R4DS
R code:
Functions:
45, 978, and 121.67 divided by 6?894? HINT: use the sqrt() function.Using the consol, find the summation of 45, 978, and 121.
Or:
What is 67 divided by 6?
What is the square root of 894?
Packages are collections of R functions and data.
tidyverse packages.For your sanity’s sake, for your co-author’s sanity’s sake
Keeps everything:
Organised
Reproducible
Sustainable
getwd() to see where you are on your computer.Source: R4DS
Source: R4DS
Source: R4DS
This session you:
Learnt about new data science tools to help you conduct replicable and reproducible political science research
Set up your data science tools